<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    FlashGme
 */
?>
<?php
    $this->headLink()
        ->appendStylesheet($this->baseUrl() . '/application/modules/Flashgame/externals/styles/main.css');
?>
<div class="headline">
  <h2>
    <?php echo $this->translate('Packages');?>
  </h2>
    <div class="tabs">
    <?php
      // Render the menu
      echo $this->navigation()
        ->menu()
        ->setContainer($this->navigation)
        ->render();
    ?>
    </div>
</div>
<div class='package_upgrade'>
      <?php if( $this->packages):?>
      <h3><?php echo $this->translate('My Packages');?> ( <?php echo count($this->packages); ?> )</h3>
      <ul>
        <?php foreach ($this->packages as $package): ?>
            <li>
                <h4><?php echo $package->userpackage_name; ?></h4>
                <div class="upgrade_package_info">
                    <b><?php echo $this->translate("Price: "); ?></b>
                    <?php echo "$" . $package->userpackage_price . $this->translate(" per ") . $package->userpackage_period . ' ' . $this->periodtypes[$package->userpackage_periodtype]; ?>
                    <div>
                        <b><?php echo $this->translate('Start Date: ');?></b>
                        <?php echo $package->userpackage_startdate; ?>
                    </div>
                    <div>
                        <b><?php echo $this->translate('Expiration Date: ');?></b>
                        <?php echo $package->userpackage_expiredate; ?>
                    </div>
                </div>
                
            </li>
        <?php endforeach; ?>
      </ul>
    <?php else: ?>
        <div class="note"><?php echo $this->translate("You have no packages."); ?></div>
    <?php endif; ?>

</div>
